package com.ciaojian.store.model.query;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.List;

/**
 * @author oxiny
 */
@Data
@Accessors(chain = true)
public class DashboardQuery {
    @ApiModelProperty("发型师ID")
    private Integer workerId;

    @ApiModelProperty("门店ID")
    private Integer storeId;

    @ApiModelProperty("顾客属性")
    private Integer customerType;

    @ApiModelProperty("订单类型")
    private List<Integer> orderTypes;

    @ApiModelProperty("服务项目名称")
    private String type;

    @ApiModelProperty("开始时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @NotNull(message = "请选择开始时间")
    private Date startDate;

    @ApiModelProperty("结束时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @NotNull(message = "请选择结束时间")
    private Date endDate;

    @ApiModelProperty("排序字段 0总业绩排序 1会员业绩排序 2转换比例排序")
    private Integer orderBy;

    @ApiModelProperty("页码")
    private Integer pageNo = 0;

    @ApiModelProperty("页面数量")
    private Integer pageSize = 10;

    private Integer isMember;

    private Integer condition;
}
